import request from '@/utils/request'

//获取单据列表
export function GetApprovalList(params) {
  return request({
    url: '/Interface/GetAuditFlowInfo',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//撤销申请
export function RevokeApproval(params) {
  return request({
    url: '/Interface/CancelAuditFlow',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//审批单据 2通过 3 驳回
export function AuditApproval(params) {
  return request({
    url: '/Interface/AuditFlowDispose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//单据明细
export function getApprovalDetail(params) {
  return request({
    url: '/Interface/GetAuditFlowInfoSub',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
